namespace hjc {

	export class RenderSystem extends System {

		protected $concerns = [Sprite];
		protected execute(entities: Entity[], param: TimeParam): void {
			entities.forEach(entity => {
				let sp = entity.sprite;
				if (sp.checkPfc()) {
					let pos = entity.position;
					sp.views.forEach(view => {
						view.x = pos.x;
						view.y = pos.y;
					});
				}
			});
		}
	}
}